import request from "@/utils/request.js";

// 获取转租类型
export function getTypeList(data) {
  return request.get("/api/v2/publish/getType", data);
}
export function getHouseTypeList(data) {
  return request.get("/api/v2/publish/getHouseType", data);
}
// 合同方式
export function getContractTypeList(data) {
  return request.get("/api/v2/publish/getContractType", data);
}
// 发布转租
export function publishSublease(data) {
  return request.post("/api/v2/publish/sublease", data);
}
// 獲取標簽
export function getTagList(data) {
  return request.post("/api/common/getTag", data);
}
// 获取地区
export function getArea(data) {
  return request.post("/api/common/getArea", data);
}
export function getArea2(data) {
  return request.post("/api/house/option_list", data,{noAuth:true});
}

// 发布
export function publishsublease(data) {
  return request.post("/api/v2/publish/advice", data);
}
export function publishshop(data) {
  return request.post("/api/v2/publish/shop", data);
}
// 获取发布列表
export function getpublishList(data) {
  return request.post("/api/v2/publish/allLists", data,{noAuth:true});
}
export function getpublishDetail(data) {
  return request.post("/api/v2/publish/allDetail", data);
}
// 点赞
export function getcollect(data) {
  return request.post("/api/v2/publish/collect", data);
}
// 分享

export function sharePage(data) {
  return request.post("/api/v2/publish/allDetailFen", data);
}
// 消息
export function getnew_lists(data) {
  return request.post("/api/v2/message/new_lists", data);
}

export function getnew_listDetail(data) {
  return request.post("/api/v2/message/detail", data);
}

export function getSendType(data) {
  return request.get("/api/v2/publish/getSendType", data);
}

export function getLoginscre(data) {
  return request.post("/api/user/login_score", data);
}

export function addComment(data) {
  return request.post("/api/v2/publish/add_comment", data);
}

export function delComment(data) {
  return request.post("/api/v2/publish/del_comment", data);
}
export function getReportOptions(data) {
    return request.get("/api/report/option_list", data);
}
export function submitReport(data) {
  return request.post("/api/report/add", data);
}

